package jintian作业;


import java.math.BigDecimal;
import java.math.RoundingMode;


public class test4 {
    public static void main(String[] args) {
          si();
    }

    private static void si() {
        double d1 = 4444444.4444;
        double d2= 3.333333;
       BigDecimal b1 = new BigDecimal(d1);
        BigDecimal b2 = new BigDecimal(d2);
//        BigDecimal result =b1.divide(b2,2, RoundingMode.HALF_UP);
        BigDecimal s1 =b2.setScale(3,RoundingMode.HALF_UP);
        System.out.println(s1);

    }

}

